home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 2 / Apprentice-Release2.iso / Source Code / C++ / Applications / Nuntius 1.2 / src / Nuntius / ViewTools.h < prev    next >
Encoding:
Text File  |  1994-03-06  |  939 b   |  28 lines  |  [TEXT/MPS ]

  1. // Copyright © 1992 Peter Speck, speck@dat.ruc.dk. All rights reserved.
  2. // ViewTools.h
  3.  
  4. #define __VIEWTOOLS__
  5.  
  6. #ifndef __UGRIDVIEW__
  7. #include <UGridView.h>
  8. #endif
  9.  
  10. void DirectDeltaRows(TGridView *gv, 
  11.         short beforeRow, short numOfRows, short aHeight);
  12. // does not Update() after TGridView have been touched
  13.  
  14.  
  15. const long kKeyTimeout = 40; // for typing names in lists
  16.  
  17. // Header from TechNote 306: Drawing Icons the System 7 Way
  18. const short ttNone = 0;
  19. const short ttSelected = 0x4000;
  20. pascal OSErr PlotIconID(const CRect &aRect, short align, short transForm, short id) = {0x303C, 0x0500, 0xABC9};
  21.  
  22.  
  23. IDType MyPoseModally(TWindow *&window); // as TWindow::PoseModally frees the window if it fails
  24. Boolean DoGridViewKey(TGridView *gv, char ch);
  25.  
  26. typedef void (*PlainDoEvent)(void *useritem, TView *view, EventNumber eventNumber, TEventHandler* source, TEvent* event);
  27. void AddActionBehaviour(TView *view, PlainDoEvent func, void *useritem);
  28.